package log

import (
	"fmt"
	"github.com/magicianlyx/GoLog/graph"
)

func AddBusinessError(msg, cnMsg string) *graph.Error {
	err := graph.NewError(ErrorTypeBusiness, msg, cnMsg)
	eobject.addError(err)
	return err
}

// fixme debug
//  用于调试 查看已经注册的错误类型
func ViewRegisteredError() {
	s := eobject.view()
	fmt.Printf("%v\r\n", s)
}
